/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.index.service;

import com.pingan.haofang.searchcloud.api.constants.EngineType;
import com.pingan.haofang.searchcloud.common.configuration.ClusterProperties;

import java.util.List;
import java.util.Map;

/**
 * 集群service
 *
 * @author zhangbi617
 * @date 2017-07-19
 */
public interface ClusterService {

    /**
     * 集群信息
     *
     * @return
     */
    Map<EngineType, List<ClusterProperties.ClusterInfo>> getClusterInfo();

    /**
     * 根据引擎Type获取集群map
     *
     * @param engineType
     * @return
     */
    Map<String, ClusterProperties.ClusterInfo> getClusterMap(EngineType engineType);


    /**
     * host key的
     *
     * @param engineType
     * @return
     */
    Map<String, ClusterProperties.ClusterInfo> getHostKeyClusterMap(EngineType engineType);

}
